/**
 * 
 */
package com.guo.hui.util;

import java.util.List;

import org.apache.commons.lang3.StringUtils;

public class DataCheckEmpty {
	/**
	 * 将字符串判空转化为多参数判定
	 */
	public static boolean dataCheckEmpty(String... args) {
		boolean result = false;
		if (args != null && args.length > 0) {
			for (String arg : args) {
				if (StringUtils.isEmpty(arg)) {
					result = true;
					break;
				}
			}
		}
		return result;
	}

	/**
	 * 判断集合List是否为空,空返回false 反之返回true
	 * 
	 * @param <T>
	 */
	public static <T> boolean listCheckEmpty(List<T> list) {
		if (list != null && !list.isEmpty()) {
			return true;
		} else {
			return false;
		}

	}

}
